Skip to content

Conversation

@manveerxyz
Copy link
Member

@manveerxyz manveerxyz commented Nov 7, 2025

Note

Adds read/write of .prime/.env-metadata.json (with migration), displays upstream environment info, creates metadata on pull, updates eval push to use it, and tweaks default pull directory naming.

  • CLI (env):
    • Metadata handling:
      • On push, save/update hub metadata to .prime/.env-metadata.json with migration from root and merging existing fields.
      • On pull, create .prime/.env-metadata.json with environment_id, owner, and name.
      • New display_upstream_environment_info() prints upstream owner/name when metadata is found; used in push and eval.
    • Pull behavior:
      • Default target directory now ./{name}; if exists, uses ./{name}-{index} (was owner-name-version).
      • File listing excludes .prime and .env-metadata.json.
  • Utils:
    • New utils/env_metadata.get_environment_metadata() reads metadata from .prime/.env-metadata.json with fallback to legacy .env-metadata.json.
  • Evals Push:
    • Resolve environment slug via get_environment_metadata() in ./environments/{module_name}.

Written by Cursor Bugbot for commit f505c0f. This will update automatically on new commits. Configure here.

if target:
target_dir = Path(target)
else:
target_dir = Path.cwd() / f"{owner}-{name}-{version}"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gives it more of a git-like feel, so I prime env pull will/wordle into the wordle dir for development

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants